package ru.jexp.rcp.supply.editor;

import org.eclipse.ui.IViewPart;

import ru.jexp.rcp.supply.beans.d18.pattern.D18PatternFormView;
import ru.jexp.rcp.supply.view.ViewPartD18Pattern;

public class EditorPartD18Pattern extends AbstractEditorPart<D18PatternFormView>
{
	public static final String ID = "ru.jexp.rcp.supply.editor.editorpartd18pattern";

	@Override
	protected D18PatternFormView createFormPart()
	{
		return new D18PatternFormView(getEditorSite());
	}

	@Override
	protected void updateViewPart(IViewPart view)
	{
		if (view instanceof ViewPartD18Pattern)
		{
			((ViewPartD18Pattern) view).refresh((EditorInputBean) getEditorInput());
		}
	}
}
